const autoprefixer = require('autoprefixer')
const pxtorem = require('postcss-pxtorem')
module.exports = {
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          autoprefixer(),
          pxtorem({
            rootValue: 37.5,
            propList: ['*'],
            // 该项仅在使用 Circle 组件时需要
            // 原因参见 https://github.com/youzan/vant/issues/1948
            selectorBlackList: ['van-circle__layer']
          })
        ]
      }
    }
  },

  outputDir: 'front',
  publicPath: '/front/',
  lintOnSave: false,
  devServer: {
    // port: 8200,
    open: true,
    overlay: {
        warnings: false,
        errors: true
    },
    proxy: {
      ['/admin']: {
          target: 'http://8.153.73.222:25004', // 修改后台接口地址
          changeOrigin: true
      },
      ['/api']: {
          target: 'http://8.153.73.222:25004',
          changeOrigin: true
      }
    }
  },
};